package com.avic.modules.equipment.service;

import com.avic.common.service.BaseService;
import com.avic.modules.equipment.domain.EquipmentRepair;
import com.avic.modules.equipment.service.dto.EquipmentRepairDto;
import com.avic.modules.equipment.service.dto.EquipmentRepairQueryCriteria;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author zhangzikang 设备维修表
 * @date 2022-08-14
 */
public interface EquipmentRepairService extends BaseService<EquipmentRepair> {
    /**
     * 查看设备维修全部信息 分页
     * @param criteria
     * @param pageable
     * @return
     */
    Map<String,Object> queryAll(EquipmentRepairQueryCriteria criteria, Pageable pageable);

    /**
     * 查看设备维修全部信息 不分页
     * @param criteria
     * @return
     */
    List<EquipmentRepair> queryAll(EquipmentRepairQueryCriteria criteria);

    List<EquipmentRepair> queryAlls(EquipmentRepairQueryCriteria criteria,Pageable pageable);

    /**
     * 导出设备维修信息
     * @param all
     * @param response
     */
    void download(List<EquipmentRepairDto> all, HttpServletResponse response) throws IOException;

    /**
     * 添加设备维修信息
     * @param equipment
     */
    void addEquipment(EquipmentRepair equipment);

    /**
     * 修改设备维修信息
     * @param equipment
     */
    void editEquipment(EquipmentRepair equipment);
}
